+2007-05-25 Michael Natterer <mitch@imendio.com>
+
+ Merge fix from maemo-gtk:
+
+ * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): open submenus
+ also if the menu item we're entering is already selected. Also, it
+ makes no sense to forward the event to the parent menu shell if we
+ are entering a menu item of *this* menu shell.
+
2007-05-24 Matthias Clasen <mclasen@redhat.com>
* gtk/stock-icons/*: Make sure all svg icons are added
(GTK_IS_MENU_ITEM (menu_item) &&
!_gtk_menu_item_is_selectable (menu_item)))
return TRUE;
-
- if ((menu_item->parent == widget) &&
- (menu_shell->active_menu_item != menu_item) &&
+
+ if (menu_item->parent == widget &&
GTK_IS_MENU_ITEM (menu_item))
{
if (menu_shell->ignore_enter)
return TRUE;
-
- if ((event->detail != GDK_NOTIFY_INFERIOR) &&
- (GTK_WIDGET_STATE (menu_item) != GTK_STATE_PRELIGHT))
- {
- gtk_menu_shell_select_item (menu_shell, menu_item);
+
+ if (event->detail != GDK_NOTIFY_INFERIOR)
+ {
+ if (GTK_WIDGET_STATE (menu_item) != GTK_STATE_PRELIGHT)
+ gtk_menu_shell_select_item (menu_shell, menu_item);
/* If any mouse button is down, and there is a submenu
* that is not yet visible, activate it. It's sufficient